import { createRouter, createWebHistory } from 'vue-router'
import IndexView from '../views/IndexView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'index',
      component: IndexView
    },
    {
      path: '/aboutus',
      name: 'aboutus',
      component: () => import('../views/AboutusView.vue')
    },
    {
      path: '/service',
      name: 'service',
      component: () => import('../views/ServiceView.vue')
    },
    {
      path: '/ceshi',
      name: 'ceshi',
      component: () => import('../views/ceshiView.vue')
    },
    {
      path: '/detail',
      name: 'datail',
      component: () => import('../views/ServiceDetail.vue')
    },
    {
      path: '/blog',
      name: 'blog',
      component: () => import('../views/BlogView.vue')
    },
    {
      path: '/blogdetail',
      name: 'blogdetail',
      component: () => import('../views/BlogDetail.vue')
    },
    {
      path: '/callus',
      name: 'callus',
      component: () => import('../views/CallusView.vue')
    },
    {
      path: '/design',
      name: 'design',
      component: () => import('../views/DesignView.vue')
    },
  ]
})

export default router
